package simulation;

import musictrackrecommendation.DatabaseDataset;
import musictrackrecommendation.ExperimentParameters;

public class UserStepDistribution extends ItemStepDistribution{

	public UserStepDistribution(int itemId) {
		getDistributionFunction(itemId);
	}

	@Override
	public void getDistributionFunction(int userId) {
		ExperimentParameters parameters = ExperimentParameters.getInstance();
		DatabaseDataset dataset = parameters.getDatasetDatabase();
		this.setCdf(dataset.getUserSimilarItems(userId));		
	}

}
